package com.crm.business.crm.service;


import com.crm.business.servlet.BaseService;
import com.crm.common.crm.entity.BO.CrmRoiPutinPageBO;
import com.crm.common.crm.entity.PO.CrmRoiPutin;
import com.crm.common.crm.entity.VO.CrmRoiStatisVO;
import com.crm.common.ka.core.entity.BasePage;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;


/**
 * <p>
 * 投放消耗表 服务类
 * </p>
 *
 * @author zhangzhiwei
 * @since 2020-05-21
 */
public interface ICrmRoiPutinService extends BaseService<CrmRoiPutin> {

    public BasePage<CrmRoiPutin> queryPageList(CrmRoiPutinPageBO crmRoiPutinPageBO);

    public void addOrUpdate(CrmRoiPutin crmRoiPutin);

    public List<Map<String,Object>> selectAllPutinStatis();

    public BigDecimal querySumMoney(String putinPlatform, String startPutinFormDate, String endPutinFormDate);

    public List<CrmRoiStatisVO> queryPutinStatisForData(String startPutinFormDate,String endPutinFormDate);

    public CrmRoiPutin getRoiDataById(Integer putinId);

    public List<CrmRoiStatisVO> queryPutinStatisByFormDate(CrmRoiPutinPageBO crmRoiPutinPageBO);

    public List<CrmRoiStatisVO> queryPutinStatisForYearsSource(String startPutinFormDate,String endPutinFormDate);

}
